#ifndef __PHYSICWORLD_HPP__
#define __PHYSICWORLD_HPP__

#include <Box2D/Box2D.h>


class PhysicWorld
{
    public :
    
        static PhysicWorld& instance();
        
        void createWorld();
        void destroyWorld();
        
        b2World* world();
        
        void update(const float dt);
        
    private :
    
        PhysicWorld();
        ~PhysicWorld();

        b2World *m_world;
};

#define GET_PHYSIC_WORLD PhysicWorld::instance().world()
#define BOX2D_TO_SFML 30.f
#define SFML_TO_BOX2D 1.f/BOX2D_TO_SFML


#endif /* __PHYSICWORLD_HPP__ */

